< previous page page_79 next page >

Page 79
A check mark positioned to the left of a menu item is used to inform the user that a certain option is currently in effect. For example, you may use this on a View menu to signify that a toolbar is being displayed.
You can group menu items under a submenu by putting a separator bar between different menu items. Menu items can be separated by creating a menu item with the caption property set to a hyphen (-). Youll need to create a unique name for each separator bar.
Menu shortcut keys, sometimes called access keys, hotkeys, or accelerator keys, are shown as a key combination to press without going to the menu item. For example, Ctrl+X is the same as selecting Edit, Cut. The F1 key is the same as choosing Help.
Each of the top-level menu items has an underlined letter. This tells the user that he or she can press the Alt key in combination with this letter to access the menu items. Underlined letters in drop-down menus indicate that the user can press the key instead of clicking the item with the mouse. To make an underlined letter, precede the letter in the Caption property with an ampersand (&) character.
Menu Editor
A menu is created in Visual Basic by selecting a form and then pressing Ctrl+E, by selecting Tools, Menu Editor, or by selecting the Menu Editor icon on the toolbar. The Menu Editor window, shown in Figure 4.5, allows you to put in Windows menu items one by one. This is probably the least visual part of Visual Basic.
8160-0079a.gif
Figure 4.5
The Menu Editor dialog box.

 
< previous page page_79 next page >

If you like this book, buy it!